#ifndef MODEL_H
#define MODEL_H

#include <string>
#include "sigslot.h"

class Model
{
public:
    Model() {}

    void Append(const char* s)
    {
        m_text += s;
        Refreshed.emit(true);
    }

    const std::string& GetText() const
    {
        return m_text;
    }

    /// signals
    sigslot::signal1<bool> Refreshed;

private:
    std::string m_text;
};

#endif // MODEL_H
